/*
 * Copyright：fxsen <br/>
 * Date: 2021/9/22 10:00 <br/>
 * Author: <a href="mailto:fxsen@foxmail.com">fxsen</a>
 */
package com.fxsen.commons.sysmanager.core.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;

/**
 * @describe: 系统菜单对象 <br/>
 * @date: 2021/9/22 10:00 <br/>
 * @author: <a href="mailto:fxsen@foxmail.com">fxsen</a>
 */
@ApiModel("菜单")
@EqualsAndHashCode(callSuper = true)
@TableName("sys_menu")
@TableComment(value = "菜单表")
public class Menu extends BaseEntity {
    private static final long serialVersionUID = 1429451960328350436L;
    /**
     * 父id
     */
    @ApiModelProperty("父id")
    @TableField(value = "pid")
    @Column(name = "pid", type = MySqlTypeConstant.VARCHAR, comment = "父id",length = 32)
    private String pid;
    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @TableField(value = "title")
    @Column(name = "title", type = MySqlTypeConstant.VARCHAR, comment = "名称",length = 100)
    private String title;
    /**
     * 菜单图标
     */
    @ApiModelProperty("菜单图标")
    @TableField(value = "icon")
    @Column(name = "icon", type = MySqlTypeConstant.VARCHAR, comment = "菜单图标",length = 255)
    private String icon;
    /**
     * 菜单链接
     */
    @ApiModelProperty("菜单链接")
    @TableField(value = "href")
    @Column(name = "href", type = MySqlTypeConstant.VARCHAR, comment = "菜单链接",length = 255)
    private String href;
    /**
     *菜单打开方式
     */
    @ApiModelProperty("菜单打开方式")
    @TableField(value = "target")
    @Column(name = "target", type = MySqlTypeConstant.VARCHAR, comment = "菜单打开方式",length = 20)
    private String target;
    /**
     * 菜单类型（0：目录，1：菜单，2：按钮）
     */
    @ApiModelProperty(name = "菜单类型（0：目录，1：菜单，2：按钮）")
    @TableField(value = "type")
    @Column(name = "type", type = MySqlTypeConstant.INT, comment = "菜单类型（0：目录，1：菜单，2：按钮）",length = 1)
    private int type;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
